<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var str1 = "郭达";
        var str2 = str1;
        str1 = "雷浩";
        console.log(str1);
        console.log(str2);
        // str1和str2是两个独立的数据
    </script>
</body>
</html>